package com.personal.enums;

/**
 * @author coderFu
 * @create 2021/10/1
 *通用返回枚举
 */
public enum ShopCartEnum implements Code {

    /** 购物车 */
    SHOP_CART_IS_EXIST(3050,"购物车中已经存在该商品，请直接去购物车查看！"),
    SHOP_CART_IS_ERROR(3051, "添加购物车错误，请稍后重试"),
    SHOP_CART_is_null(3052, "购物车还是空的哦")
    ;

    private int code;
    private String msg;
    ShopCartEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
